package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Execution implements Serializable {
    /**
     * 执法记录
     */

    private static final long serialVersionUID = 1L;

    /**
     * 违法主体 1车辆 2人
     */
    public static final Integer CAR = 1;
    public static final Integer PERSON=2;
    /**
     * 处理状态 0未读 1已读
     */
    public static final Integer UN_READ = 0;
    public static final Integer READED = 1;

    private Long id;
    //违法id
    private Long violationId;
    //违法主体 1车辆 2人
    private Integer type;
    //违法类型
    private Integer violationType;
    //地点
    private String location;
    //图片路径
    private String imagePath;
    //处理状态 0未读 1已读
    private Integer status;
    //抓拍时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //更新人
    private Long updateUser;
    //违法人
    private Long userId;
    //处理图片
    private String file;
    //处理意见
    private String detail;
}
